﻿var shotSpeed : float;
var initialTime : float;
var shotLifeTime : float;

function Start () {
	initialTime = Time.time;
	rigidbody.AddForce(shotSpeed*transform.forward);

}

function Update () {
	if( shotLifeTime <= (Time.time - initialTime) ) {
		DestroyObject(this.gameObject);
	}

}